package com.dingding.manager.modules.passenger.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.dingding.manager.common.beans.passenger.UserDetail;
import com.dingding.manager.modules.passenger.dao.IPassengerDao;
import com.dingding.manager.modules.passenger.service.IPassengerService;

/**
 * 
 * @ClassName: PassengerServiceImpl 
 * @Description: 乘客相关接口定义实现
 * @author hufan
 * @date 2016年12月10日 下午1:39:11 
 *
 */
@Service("passengerService")
public class PassengerServiceImpl implements IPassengerService {

	@Resource(name="passengerDao")
	IPassengerDao passengerDao;
	/**
	 * 
	 * @Title: getUserDetailByUserId 
	 * @Description: 根据乘客id获取乘客详情
	 * @param  参数说明 
	 * @author hufan
	 * @return 返回类型 
	 * @throws
	 */
	@Override
	@Transactional(readOnly=true)
	public UserDetail getUserDetailByUserId(String passengerId) {
		return passengerDao.getUserDetailByUserId(passengerId);
	}

}
